package com.ruoyi.web.controller.flowable.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.flowable.ui.modeler.domain.Model;

import java.util.List;
import java.util.Map;

@Mapper
public interface ModelMapper {

    void deleteModel(Model model);

    Long countByModelTypeAndCreatedBy(Map<String, Object> params);

    List<Model> selectModelByParameters(Map<String, Object> params);

    Model selectModel(String id);

    List<Model> selectModelByParentModelId(String parentModelId);

    void insertModel(Model model);

    void updateModel(Model model);
}
